﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using Common;

namespace DataFactory
{
    public class PassportInfoDataFactory
    {

        public PassportInfoData Construct(IDataReader reader)
        {
            PassportInfoData data = new PassportInfoData();

            data.TaskCode = Convert.ToString(reader["TaskCode"]);

            data.CardCode = Convert.ToString(reader["CardCode"]);

            data.Birthday = Convert.ToDateTime(reader["Birthday"]);

            data.CardID = Convert.ToString(reader["CardID"]);

            data.Name = Convert.ToString(reader["Name"]);

            data.OprationNumber = Convert.ToString(reader["OprationNumber"]);

            data.AddTime = Convert.ToDateTime(reader["AddTime"]);

            data.Operator = Convert.ToString(reader["Operator"]);

            data.Pillar = Convert.ToInt32(reader["Pillar"]);

            data.Layer = Convert.ToInt32(reader["Layer"]);

            data.Cell = Convert.ToInt32(reader["Cell"]);
            return data;
        }
    }
}
